export default [ // 所有子路由嵌套在 layout 下
    {
        icon: "commodity",
        path: '/dashboard', // 最终路径：/layout/dashboard
        name: "dashboard",
        meta: {
            icon: "el-icon-odometer",
            title: "仪表盘",
        },

    },
    {
        path: '/content', // 父级路径，用于展示菜单分组
        name: "content",
        meta: {
            icon: "el-icon-folder-opened",
            title: "内容管理",
        },

        children: [
            {
                path: '/content/list', // 最终路径：/layout/content/list
                name: "content-list",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "内容列表",
                },

            },
            {
                path: '/content/create', // 最终路径：/layout/content/create
                name: "content-create",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "发布内容",
                },

            },
            {
                path: '/content/categories', // 最终路径：/layout/content/categories
                name: "content-categories",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "内容分类",
                },

            },
            {
                path: '/content/management', // 最终路径：/layout/content/categories
                name: "content-management",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "海报管理",
                },

            },
        ],
    },
    {
        path: '/analytics', // 父级路径，用于展示菜单分组
        name: "analytics",
        meta: {
            icon: "el-icon-data-line",
            title: "数据分析",
        },

        children: [
            {
                path: '/analytics/overview', // 最终路径：/layout/analytics/overview
                name: "analytics-overview",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "数据概览",
                },

            },
            {
                path: '/analytics/content', // 最终路径：/layout/analytics/content
                name: "analytics-content",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "内容分析",
                },

            },
            {
                path: '/analytics/audience', // 最终路径：/layout/analytics/audience
                name: "analytics-audience",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "受众分析",
                },

            },
        ],
    },
    {
        path: '/keywords', // 父级路径，用于展示菜单分组
        name: "keywords",
        meta: {
            icon: "el-icon-search",
            title: "关键词工具",
        },

        children: [
            {
                path: '/keywords/trending', // 最终路径：/layout/keywords/trending
                name: "keywords-trending",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "热门关键词",
                },

            },
            {
                path: '/keywords/suggest', // 修正名称与组件对应（原 publish 改为 suggest）
                name: "keywords-suggest",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "关键词推荐",
                },

            },
            {
                path: '/keywords/compare', // 最终路径：/layout/keywords/trending
                name: "keywords-compare",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "关键词对比",
                },

            },
        ],
    },
    {
        path: '/fans', // 父级路径，用于展示菜单分组
        name: "fans",
        meta: {
            icon: "el-icon-user",
            title: "粉丝管理",
        },

        children: [
            {
                path: '/fans/overview', // 最终路径：/layout/keywords/trending
                name: "fans-overview",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "粉丝概览",
                },

            },
            {
                path: '/fans/profile', // 修正名称与组件对应（原 publish 改为 suggest）
                name: "fans-profile",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "粉丝画像",
                },

            },
            {
                path: '/fans/interaction', // 修正名称与组件对应（原 publish 改为 suggest）
                name: "fans-interaction",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "互动分析",
                },

            },
        ],
    },
    {
        path: '/publish', // 父级路径，用于展示菜单分组
        name: "publish",
        meta: {
            icon: "el-icon-upload2",
            title: "发布管理",
        },

        children: [
            {
                path: '/publish/drafts', // 最终路径：/layout/publish/drafts
                name: "publish-drafts",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "草稿箱",
                },

            },
            {
                path: '/publish/schedule', // 最终路径：/layout/publish/schedule
                name: "publish-schedule",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "发布时间表",
                },

            },
            {
                path: '/publish/history', // 最终路径：/layout/publish/history
                name: "publish-history",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "历史记录",
                },

            },
        ],
    },
    {
        path: '/settings', // 父级路径，用于展示菜单分组
        name: "settings",
        meta: {
            icon: "el-icon-setting",
            title: "账号设置",
        },

        children: [
            {
                path: '/settings/account', // 最终路径：/layout/settings/account
                name: "settings-account",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "账号信息",
                },

            },
            {
                path: '/settings/security', // 最终路径：/layout/settings/security
                name: "settings-security",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "安全设置",
                },

            },
            {
                path: '/settings/notification', // 最终路径：/layout/settings/notification
                name: "settings-notification",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "通知设置",
                },

            },
            {
                path: '/settings/billing', // 最终路径：/layout/settings/billing
                name: "settings-billing",
                meta: {
                    requiresAuth: true, // 可选：添加权限验证
                    title: "付费设置",
                },

            },
        ],
    },
]
